<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0,viewport-fit=cover">
    <link rel="stylesheet" href="../css/weui.css"/>
    <link rel="stylesheet" href="../css/login.css"/>
    <script src="../js/jquery-2.1.1.min.js"></script>
    <script src="../js/main.js"></script>
    <script src="../layer/layer.js"></script>
    <title></title>
</head>
<body>


<div id="d" style="padding-bottom:10%;width:100%;height:0;margin-top: 1rem;background-color: black;margin-top: 0px;">
    <div style="width:70%;margin:auto auto;">
        <img src="../img/index/top.png" style="height: auto;width:100%; margin:auto auto;"/>
    </div>
</div>


<div class="weui-panel weui-panel_access">
    <div class="weui-panel__hd">个人所以成果展示</div>
    <div class="weui-panel__bd" id="data">
        <!--<a href="achievement/detailedPersonal.html" class="weui-media-box weui-media-box_appmsg">-->
            <!--<div class="weui-media-box__bd">-->
                <!--<h4 class="weui-media-box__title">成果1</h4>-->
                <!--<p class="weui-media-box__desc">由各种物质组成的巨型球状天体，叫做星球。星球有一定的形状，有自己的运行轨道。</p>-->
            <!--</div>-->
        <!--</a>-->

    </div>
</div>
<script>
    $.ajaxSetup({
        xhrFields: {
            withCredentials: isCrossDomain
        }
    });
    $(function () {
        $.get(mainurl+"skill/getResultList",function (data) {
            if(checkData(data)){
                var dat = data.data;
                for(var i=0; i<dat.length; i++) {
                    var d = dat[i];
                    var rid = d.rid;
                    var title = d.title;
                    var content = d.content;
                    $("#data").append("<a href=\"achievement/detailedPersonal.html?id="+rid+"\" class=\"weui-media-box weui-media-box_appmsg\">\n" +
                        "            <div class=\"weui-media-box__bd\">\n" +
                        "                <h4 class=\"weui-media-box__title\">"+title+"</h4>\n" +
                        "                <p class=\"weui-media-box__desc\">"+content+"</p>\n" +
                        "            </div>\n" +
                        "        </a>");
                }

            }
        })
    });

</script>
</body>
</html>
